﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ProgNetComponents.MDI;

namespace Wydatki.Tools
{
    public static class Globals
    {
        public static MdiHelper MdiHelper
        {
            get;
            set;
        }
        public static bool ShowExceptionDetailsForm
        {
            get;
            set;
        }
        public static void HandleException(Exception ex, string message = "")
        {
            ex.Log(message);
            if (ShowExceptionDetailsForm)
                ex.ShowExceptionDetails();
        }
    }
}
